package com.zq.spring.event;

import org.springframework.context.ApplicationEvent;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/24 10:23
 * @Version 1.0
 */

public class DemoEvent extends ApplicationEvent {

    private static final long serialVersionUID = 1L;

    private String msg;


    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public DemoEvent(Object source) {
        super(source);
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DemoEvent(Object source, String msg) {
        super(source);
        this.msg = msg;
    }
}
